home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_01_06
/
1n06058b
< prev
next >
Wrap
Text File
|
1990-08-22
|
839b
|
35 lines
'QuickBASIC 4.5 version of Print Screen BIOS call'
'
'NOTE: The Quick Library QB.QLB must be loaded
'with QuickBASIC, and program must be compiled
'with QB.LIB to use CALL INTERRUPT.
DIM status AS INTEGER
DIM inregs%(7), outregs%(7)
'Execute BIOS interrupt #5, no register
' parameters needed
CALL interrupt(&H5, inregs%(), outregs%())
'get Print Screen status byte at 0050:0000
DEF SEG = &H50 'point to segment 0050
status = PEEK(0) 'and get byte at offset 0
IF status = 1 THEN 'Print Screen interrupt in use
PRINT "Screen printing in progress."
ELSEIF status > 1 THEN 'Print Screen error
PRINT "Error - could not print the screen."
END IF 'default to status=0,
' Print Screen successful
DEF SEG 'point back to BASIC data area
END